trigger CRMCheckCustomerTrigger on CRMCheckCustomer__c(before insert, after insert,before delete ,before update) {
    new Triggers()
    .bind(Triggers.Evt.beforeinsert, new PopulateCRMCCOwnerIdHandler()) //插入之前设置所有人=被评人
    .bind(Triggers.Evt.afterinsert, new GenCRMexamineHandler())  //插入后新增一条CRM客户评分
    .bind(Triggers.Evt.beforedelete, new DeleteCRMexamineHandler())//删除CRM考核客户同时删除CRM考核评分， 前提是CRM考评评分没有被评过
    .manage();
    if(Trigger.isBefore && Trigger.isUpdate){
    	GenCRMexamineHandler.updateCRMexamine(Trigger.new);//更新CRM客户的时候,更新CRM客户评分
    }
}